﻿using System;
using System.Runtime.Serialization;

namespace SqlMonitoring.Agent.AgentServiceBase
{
    [Serializable]
    public class AgentManagerBaseException : Exception
    {
        public AgentManagerBaseException() {}

        public AgentManagerBaseException(String message) : base(message) {}

        public AgentManagerBaseException(string message, Exception innerException) : base(message, innerException) {}

        protected AgentManagerBaseException(SerializationInfo info, StreamingContext context) : base(info, context) {}
    }

    [Serializable]
    public class StopRequestedException : Exception
    {
        public StopRequestedException() {}

        public StopRequestedException(String message) : base(message) {}

        public StopRequestedException(string message, Exception innerException) : base(message, innerException) {}

        protected StopRequestedException(SerializationInfo info, StreamingContext context) : base(info, context) {}
    }
}